package cn.zzp.pet.service;

import cn.zzp.basic.service.BaseService;
import cn.zzp.basic.util.JsonResult;
import cn.zzp.basic.util.PageList;
import cn.zzp.pet.domain.Pet;
import cn.zzp.pet.domain.SearchMasterMsg;
import cn.zzp.pet.dto.AcceptDto;
import cn.zzp.pet.query.SearchMasterMsgQuery;
import cn.zzp.user.domain.LoginInfo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @ClassName
 * @Description  service层
 * @Author 祝志鹏
 * @Date 2022/7/14 14:15
 */
public interface SearchMasterMsgService extends BaseService<SearchMasterMsg> {

    /**
     * 寻主消息发布
     * @param searchMasterMsg
     * @return
     */
    void publish(SearchMasterMsg searchMasterMsg,Long id);

    /**
     * 按照条件分页查询
     * @param query
     * @param request
     * @return
     */
    PageList<SearchMasterMsg> pageQuery(SearchMasterMsgQuery query, HttpServletRequest request);

    /**
     * 拒单
     * @param id
     */
    void reject(Long id);

    /**
     * 接单
     * @param dto
     * @param loginInfo
     */
    void accept(AcceptDto dto, LoginInfo loginInfo);
}
